/// directors : ["张艺谋"]
/// rate : "7.6"
/// cover_x : 5315
/// star : "40"
/// title : "悬崖之上"
/// url : "https://movie.douban.com/subject/32493124/"
/// casts : ["张译","于和伟","秦海璐","朱亚文","刘浩存"]
/// cover : "https://img9.doubanio.com/view/photo/s_ratio_poster/public/p2641614433.webp"
/// id : "32493124"
/// cover_y : 7440

class VideoModel {
  List<String>? directors;
  String? rate;
  int? coverX;
  String? star;
  String? title;
  String? url;
  List<String>? casts;
  String? cover;
  String? id;
  int? coverY;

  VideoModel({
      List<String>? directors,
      String? rate,
      int? coverX,
      String? star,
      String? title,
      String? url,
      List<String>? casts,
      String? cover,
      String? id,
      int? coverY}){
    this.directors = directors;
    this.rate = rate;
    this.coverX = coverX;
    this.star = star;
    this.title = title;
    this.url = url;
    this.casts = casts;
    this.cover = cover;
    this.id = id;
    this.coverY = coverY;
}

  VideoModel.fromJson(dynamic json) {
    this.directors = json["directors"] != null ? json["directors"].cast<String>() : [];
    this.rate = json["rate"];
    this.coverX = json["cover_x"];
    this.star = json["star"];
    this.title = json["title"];
    this.url = json["url"];
    this.casts = json["casts"] != null ? json["casts"].cast<String>() : [];
    this.cover = json["cover"];
    this.id = json["id"];
    this.coverY = json["cover_y"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["directors"] = this.directors;
    map["rate"] = this.rate;
    map["cover_x"] = this.coverX;
    map["star"] = this.star;
    map["title"] = this.title;
    map["url"] = this.url;
    map["casts"] = this.casts;
    map["cover"] = this.cover;
    map["id"] = this.id;
    map["cover_y"] = this.coverY;
    return map;
  }

}